package net.comm.util;



import java.io.Serializable;



/**

 * <p>Title: </p>

 * <p>Description: </p>

 * <p>Copyright: Copyright (c) 2004</p>

 * <p>Company: </p>

 * @author not attributable

 * @version 1.0

 */

public class HtmlMessageBox implements Serializable

{

	

	/**

	 * 

	 */

	private static final long serialVersionUID = -4024658945799544050L;

	private int alertType=HtmlMessageBox.ALERTTYPE_PRINTTOHTML;

	private String forwardUrl="";

	private String elseurl="";

	private String printMessage="";

	private String targetName="_self";

	private boolean useBeanMessage=false;

	private int timerForward=5;

	private String linkMsg;

	private boolean isEnabledTimer=true;

	public static final int ALERTTYPE_CALLALERTMETHOD = 1;	//提示使用对话框方式

	public static final int ALERTTYPE_PRINTTOHTML = 2;		//提示显示用页面文字提示

	public static final int ALERTTYPE_DIRECT_GO = 3;		//不用提示直接跳转

	public static final int ALERTTYPE_CONFIRM = 4;		//用户进一步确认框

	public static final int ALERTTYPE_SCRIPT = 5;		//直接执行脚本

	public static final String TARGETTYPE_SELF = "_self";

	public static final String TARGETTYPE_BLANK = "_blank";

	public static final String TARGETTYPE_TOP = "_top";

	public static final String TARGETTYPE_PARENT = "_parent";

	private Object[]formatParams;

	

	/**

	 * @return Returns the formatParams.

	 */

	public Object[] getFormatParams()

	{

		return formatParams;

	}

	/**

	 * @param formatParams The formatParams to set.

	 */

	public void setFormatParams(Object[] formatParams)

	{

		this.formatParams=formatParams;

	}

	public HtmlMessageBox()

	{

		useBeanMessage=false;

	}



	public int getAlertType()

	{

		return alertType;

	}



	public String getForwardUrl()

	{

		return forwardUrl;

	}



	public String getPrintMessage()

	{

		return printMessage;

	}



	public String getTargetName()

	{

		return targetName;

	}



	public void setAlertType(int alertType)

	{

		this.alertType = alertType;

	}



	public void setForwardUrl(String forwardUrl)

	{

		this.forwardUrl = forwardUrl;

	}



	public void setTargetName(String targetName)

	{

		this.targetName = targetName;

	}



	public void setPrintMessage(String printMessage)

	{

		this.printMessage = printMessage;

	}



	public boolean isUseBeanMessage()

	{

		return useBeanMessage;

	}



	public void setUseBeanMessage(boolean useBeanMessage)

	{

		this.useBeanMessage = useBeanMessage;

	}

	/**

	 * @return Returns the timerForward.

	 */

	public int getTimerForward()

	{

		return timerForward;

	}

	/**

	 * @param timerForward The timerForward to set.

	 */

	public void setTimerForward(int timerForward)

	{

		this.timerForward=timerForward;

	}

	/**

	 * @return Returns the linkMsg.

	 */

	public String getLinkMsg()

	{

		return linkMsg;

	}

	/**

	 * @param linkMsg The linkMsg to set.

	 */

	public void setLinkMsg(String linkMsg)

	{

		this.linkMsg=linkMsg;

	}

	/**

	 * @return Returns the isEnabledTimer.

	 */

	public boolean isEnabledTimer()

	{

		return isEnabledTimer;

	}

	/**

	 * @param isEnabledTimer The isEnabledTimer to set.

	 */

	public void setEnabledTimer(boolean isEnabledTimer)

	{

		this.isEnabledTimer=isEnabledTimer;

	}

	public String getElseurl() {

		return elseurl;

	}

	public void setElseurl(String elseurl) {

		this.elseurl = elseurl;

	}

}

